<?php
/**
* @author: Truong Kim Phung
* @date: Monday, January 27, 2014
*/
// check permission add new
if( !isset($AppUI) ||
	!isset($_SESSION['admin']) ||
	(isset($_SESSION['admin']) && ($_SESSION['admin']&&1<<1)==0)
	
	/*|| 
	(isset($AppUI->id) && !in_array($AppUI->type, array(ROLE_ROOT, ROLE_ADMINISTRATOR)))*/
) {
	redirect(HOST_BACKEND);
}
$this->smarty->assign('arrType', $arrType);
$this->smarty->assign('arrRoom', $arrRoom);
$this->smarty->display('admin/add.tpl');